package com.huitian.net

import com.google.inject.Singleton
import com.typesafe.config.{Config, ConfigFactory}

/**
  * Spark 配置
  */
@Singleton
class SparkConfiguration {
  private val config:                      Config = ConfigFactory.load()
  lazy    val sparkConf:                   Config = config.getConfig("spark")
  lazy    val sparkMaster:                 String = sparkConf.getString("common.master")
  lazy    val checkPointPath:              String = sparkConf.getString("common.checkpoint.path")
  lazy    val ak:                          String    = sparkConf.getString("common.fs.tos.access.key")
  lazy    val sk:                          String    = sparkConf.getString("common.fs.tos.secret.key")


}
